package com.huawei.appgallery.packagemanager.impl.utils;

import androidx.annotation.Nullable;
import o.fho;
import o.fhz;

public class HMFUtils {

    public static class ModuleCreateExecption extends RuntimeException {
        public ModuleCreateExecption(String str) {
            super(str);
        }
    }

    @Nullable
    public static <T> T ˊ(Class<T> cls) {
        fhz ˋ = fho.ˏ().ˋ("PackageManager");
        if (ˋ == null) {
            throw new ModuleCreateExecption("module can not find:PackageManager");
        }
        T ॱ = ˋ.ॱ((Class) cls);
        if (ॱ != null) {
            return ॱ;
        }
        throw new ModuleCreateExecption("create module failed:PackageManager");
    }
}
